package com.javaapi.practices2;

import java.util.Scanner;

public class Test47 {

	// 题目：读取7个数（1—50）的整数值，每读取一个值，程序打印出该值个数的＊。
	public static void main(String[] args) {

		int n = 0;
		int a = 0;
		int count = 0;

		while (n < 3) {
			do {
				System.out.println("请输入一个1--50之间的整数：");
				Scanner scanner = new Scanner(System.in);
				a = scanner.nextInt();
				count++;
			} while (a <= 1 && a >= 50);
			n++;
			for (int i = 0; i < count; i++) {
				System.out.print("*");
			}
		}
		System.exit(1);
	}

}
